/**
 * 
 */
package portal;

import java.io.Reader;

/**
 * @author Sorrentino
 *
 */
public interface PortalPanel {

	/**
	 * denote if the panel concern a module of code (e.g. javascript)
	 * 
	 * @return boolean
	 */
	boolean isCodeModule();
	
	/**
	 * denote if the panel could be cached (static content) or not (dynamic content) 
	 * 
	 * @return boolean
	 */
	boolean isCacheable();
	
	/**
	 * the name is the panel id and will be used to associate the panel to a layout's variable
	 *  
	 * @return name of panel
	 */
	String getName();
	
	/**
	 * 
	 * @return panel content
	 */
	Reader getPanelContent();
}
